package com.itheima.chapter10.thread.demo6;

//设置线程名称1
public class Demo {
    public static void main(String[] args) {
        MyThread t1 =new MyThread();
        t1.setName("线程一");
        MyThread t2 =new MyThread();
        t2.setName("线程二");
        MyThread t3 =new MyThread();
        t3.setName("线程三");
        t1.start();
        t2.start();
        t3.start();
    }
}
